import datetime

def diff_days(days):
    pdate_obj = datetime.datetime.now()
    time_gap = datetime.timedelta(days=days)
    pdate_result = pdate_obj - time_gap
    return pdate_result.strftime("%Y-%m-%d")

print(diff_days(0), diff_days(1), diff_days(-1), diff_days(7))
